IBX-12606: Migrated the test suite to PHPUnit 11 - #93
Merged
Merged
Conversation
|
mikadamczyk
approved these changes
Sep 17, 2026
konradoboza
approved these changes
Sep 17, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Related PRs:
Description:
PHPUnit 9 → 11 for this package (Symfony 8 upgrade prerequisite). Pilot for the org-wide migration.
phpunit/phpunit ^9.6→^11.5,matthiasnoback/symfony-dependency-injection-test ^5.0→^6.0(symfony/phpunit-bridge ^7.4unchanged; resolves to PHPUnit 11.5.56).phpunit.xml: PHPUnit 10+ shape;<listeners>SymfonyTestsListener→<extensions><bootstrap class="Symfony\Bridge\PhpUnit\SymfonyExtension"/>; removedconvert*ToExceptions,backupStaticAttributes→backupStaticProperties;cacheDirectory=".phpunit.cache"(gitignored, together with.phpunit.result.cache).@dataProvider→#[DataProvider]with static providers;MockBuilder::setMethods()→onlyMethods()(RoleIdentifyTestmocks the concreteRepository, so the partial mock must keepsudo()real — Rector's set would have deleted the call and turned it into a full mock, which fails one assertion);InvokedCount::getInvocationCount()→numberOfInvocations()(9 call sites, removed in PHPUnit 11);createMock()→createStub()where no expectations are set.getMockForAbstractClass()call sites on abstract value objects — allowed in PHPUnit 11 (deprecated for 12), handled with the PHPUnit 12 step.Unit suite 41 tests green, phpspec 50 examples green, PHPStan level 8 and code style clean, project rector clean.
For QA:
N/A — test tooling only.
Documentation:
N/A